package cn.xej.health.auth.feign;

import cn.xej.health.common.domain.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xej
 * 用户模块远程调用
 */
@FeignClient("health-user")
public interface UserFeignService {

    /**
     * 根据用户名获取通用用户信息
     * @param username
     * @return
     */
    @GetMapping("/user/loadUserByUsername")
    UserDto loadUserByUsername(@RequestParam String username);
}
